//冒泡排序
var array = [23,83,12,11,41,53,5];
//console.log(array.sort(function(a,b){return a - b}))
for(i = 0; i < array.length; i++){
    for(j = 0; j < array.length -1; j++){
        if(array[j] > array[j + 1]){
            let temp = array[j];
            array[j] = array[j + 1];
            array[j + 1] = temp; 

        }
    }
}
console.log(array.toString())
console.log(array.reverse())
